package com.ws.gc.mapper.user.mapper;

import com.ws.gc.mapper.user.entity.SysUser;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.ws.rain.mybatis.annotation.Dao;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Mr Rain
 * @since 2020-03-08
 */
@Dao
public interface SysUserMapper extends BaseMapper<SysUser> {
    SysUser selectByUsername(String username);

    @Select("select max(id) FROM sys_user")
    Long selectMaxId();
}
